package swu.cx.definelock

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import kotlinx.android.synthetic.main.activity_main.*

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        //回调设置提示信息
        lock.showTip={msg->
            tip.text=msg
        }
        //回调进行界面跳转
        lock.doJump={
            startActivity(Intent(this,Desktop::class.java))
        }
    }
}